#include"Heap.h"
int main()
{	
	Heap hp;
	/*int a[] = { 27,15,19,18,28,34,65,49,25,37 };*/
	int a[] = { 9,1,2,5,7,4,8,6,3,5,3,6/*,1,6,3,9,1,15,56,21,34,19,45,11*/ };
	HeapInit(&hp, a, sizeof(a) / sizeof(HPDateType));

	//HeapPush(&hp, 14);
	//HeapPush(&hp, 23);
	HeapSort(hp._a, hp._size);
	for (int i = 0;i < hp._size;i++)
	{
		printf("%d ",hp._a[i]);
	}
	return 0;
}